package com.first.nell.data

data class RevObjRepayDetail(
    val amount: String,
    val interest: String,
    val repayDate: String,
    val overdueDay: Int,
    val remainDay: Int,
    val overdueAmount: String,
    val repayProFee: String? = "",
    /** 还款手续费，还款页统一取这个 */
    val serviceFee: String? = "0",
    /** 还款手续费 */
    val serviceVatFee: String? = "0",
    val repayAmount: String,
    val bankName: String,
    val bankCardNo: String,
    val partRepayFlag: String,
    var partRepayAmount: String? = "",
    var remainRepayAmount: String? = "",
    var virtualBankName: String? = "",
    var virtualBankAccount: String? = "",
    var expiryMonth: String? = "",
    var expiryYear: String? = "",
    var cvv: String? = "",
    var repayType: String = "",
    val days: String,
    val currency:String?,
    /** 是否能展期 */
    val deferredFlag: String? = "NO",
    /** 展期信息 */
    val deferredRepay: RevObjRepayDeffered? = null
){
    /** 是否能展期 */
    fun isCanDeferred(): Boolean {
        return deferredFlag.orEmpty().equals("YES", true)
    }
}